﻿using MainTitle.Views;
using Menu;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MainTitle
{
    public class MainTitle : IModule
    {

        private readonly IUnityContainer container;
        private readonly IRegionManager rManager;

        public MainTitle(IUnityContainer c, IRegionManager r)
        {
            container = c;
            rManager = r;
        }

        public void Initialize()
        {
            this.rManager.RegisterViewWithRegion(RegionNames.MainContentRegion,
                () => container.Resolve<MainTitleView>());
        }



    }
}
